package net.lab1024.sa.admin.module.fabricmaterials.dao;

import java.util.List;
import net.lab1024.sa.admin.module.fabricmaterials.domain.entity.FabricMaterialsEntity;
import net.lab1024.sa.admin.module.fabricmaterials.domain.form.FabricMaterialsAddForm;
import net.lab1024.sa.admin.module.fabricmaterials.domain.form.FabricMaterialsQueryForm;
import net.lab1024.sa.admin.module.fabricmaterials.domain.form.FabricMaterialsUpdateForm;
import net.lab1024.sa.admin.module.fabricmaterials.domain.vo.FabricMaterialsVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.aspectj.weaver.ast.Var;
import org.springframework.stereotype.Component;

/**
 * lyy Dao
 *
 * @Author lyy
 * @Date 2024-11-12 22:01:35
 * @Copyright lyy
 */

@Mapper
@Component
public interface FabricMaterialsDao extends BaseMapper<FabricMaterialsEntity> {

    /**
     * 分页 查询
     *
     * @param page
     * @param queryForm
     * @return
     */
    List<FabricMaterialsVO> queryPage(Page page, @Param("queryForm") FabricMaterialsQueryForm queryForm);

    String queryFabricMaterialCode(@Param("fabricMaterialCode") String fabricMaterialCode);

    FabricMaterialsVO getFabricMaterials(@Param("fabricMaterialCode") String fabricMaterialCode);

    List<FabricMaterialsVO> selectList();
//   获取所有的物料代码

    //获取所有的物料代码
    List<FabricMaterialsVO> queryAll();

    List<FabricMaterialsVO> getAllFabricMaterials();

    //查看库存
    Integer getFabricMaterialsQuantity(Integer id);




}
